package com.wyd.flowable.delegate;

import lombok.extern.slf4j.Slf4j;
import org.flowable.common.engine.api.delegate.Expression;
import org.flowable.engine.HistoryService;
import org.flowable.engine.delegate.DelegateExecution;
import org.flowable.engine.delegate.ExecutionListener;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 结论：任务的启动执行监听器可以设置流程变量供节点任务使用
 */
@Component
@Slf4j
public class ExecutionListener1 implements ExecutionListener {
    private Expression type1;

    @Autowired
    private HistoryService historyService;

    @Override
    public void notify(DelegateExecution execution) {

    }
}
